<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>{{.title}}</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/assets/imgs/logo-32.ico">
    <link rel="apple-touch-icon" href="/assets/imgs/logo-100.png">
    <link rel="stylesheet" type="text/css" href="/assets/css/semantic.min.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/404.css">
</head>

<body>
    {{template "menu"}}
    <div class="ui main text container">
        <h1 class="ui header">{{.contentTitle}}</h1>
        <p>{{.content}}</p>
        <p id="wait-s-tip"></p>
    </div>
    <!-- script -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/semantic.min.js"></script>
    <script>
    var timeI = 5

    function gotoURL() {
        var url = "{{.gotoURL}}";
        if (url == "") {
            return false
        }
        if (timeI > 1) {
            setTimeout('gotoURL()', 1000);
            $("#wait-s-tip").html("稍等，将在" + timeI + "秒后跳转到页面：" + url)
        } else {
            window.location.href = url;
        }
        timeI -= 1
    }
    setTimeout('gotoURL()', 1000);
    </script>
</body>

</html>
